package com.shop.entity.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@TableName(value ="orders")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class Orders implements Serializable {
    /**
     * 
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 用户ID
     */
    @TableField(value = "user_id")
    private Long userId;

    /**
     * 用户的订单名
     */
    @TableField(value = "user_name")
    private String userName;
    /**
     * 用户联系电话
     */
    @TableField(value = "user_phone")
    private Long userPhone;

    /**
     * 订单号
     */
    @TableField(value = "orders_id")
    private String ordersId;

    /**
     * 选择(自提或者配送)
     */
    @TableField(value = "orders_mode")
    private Integer ordersMode;

    /**
     * 订单状态
     */
    @TableField(value = "orders_state")
    private Integer ordersState;

    /**
     * 订单总价
     */
    @TableField(value = "orders_price")
    private double ordersPrice;

    /**
     * 是否删除
     */
    @TableField(value = "is_delete")
    private Integer isDelete;

    /**
     * 删除理由
     */
    @TableField(value = "remove_memo")
    private String removeMemo;

    /**
     * 删除者
     */
    @TableField(value = "remove_admin")
    private String removeAdmin;

    /**
     * 订单备注
     */
   @TableField(value = "orders_memo")
    private String ordersMemo;

    /**
     * 添加时间
     */
    @TableField(value = "save_time")
    private String saveTime;

    /**
     * 地址簿Id
     */
    @TableField(value = "address_id")
    private Long addressId;

}